<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>动态注册界面</title>
</head>
<body>
<form method="post" action="RegAction.jdk">
<table>
     <tr><td>账号：<input type="text" name="name" size="20"></td></tr>
     <tr><td>密码：<input type="password" name="pwd" size="20"></td></tr>
     <tr><td>
     <!-- 动态提示错误信息 -->
     <% 
     String errorMsg=(String)session.getAttribute("errorMsg");
     if(null!=errorMsg){
    	 out.print(errorMsg);
     }
     //移除一次请求中的存储
     request.removeAttribute("errorMsg");
     %>
     </td></tr>
</table>
<input type="submit" value="注册" size="4">
</form>
</body>
</html>